<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>订单管理</title>
    <link rel="stylesheet" href="__PUBLIC__/Leader/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Leader/css/index.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Leader/css/bootstrap-datetimepicker.css"/>    

    <style type="text/css">

        .order-list a {

            position: relative;

        }



        .order-list span {

            float: right;

            margin-right: 20px;

        }



        .trhead td {

            background: #efefef;

            text-align: center

        }



        .trbody td {

            text-align: center;

            vertical-align: top;

            border-left: 1px solid #f2f2f2;

            overflow: hidden;

            font-size: 12px;

        }



        .trorder {

            background: #f8f8f8;

            border: 1px solid #f2f2f2;

            text-align: left;

        }



        .ops {

            border-right: 1px solid #f2f2f2;

            text-align: center;

        }



        .pagination ul {

            display: inline-block;

            margin-left: 0;

            margin-bottom: 0;

            -webkit-border-radius: 3px;

            -moz-border-radius: 3px;

            border-radius: 3px;

            font-size:0;

        }



        .pagination ul > li {

            display: inline-block;

            font-size:14px;

            border:1px solid #ddd;

        }

        .pagination ul > *:not(:first-child){

            margin-left:-1px;

        }

        .pagination ul > span{

            border:1px solid #ddd;

        }

        .pagination ul > li > a, .pagination ul > span {

            /*float: left;*/

            display:inline-block;

            padding: 0 14px;

            line-height: 38px;

            text-decoration: none;

            background-color: #ffffff;

            font-size:14px;

        }

        .pagination ul > li:last-child{

            margin-left:15px;

            border:none;

        }

        .pagination ul > li:last-child #pages{

            margin:0 6px;

        }

        thead tr th {

            text-align: center;

        }

    </style>

</head>

<body>

<include file="Index/head"/>

<div class="wrapper main-wrapper wrapper-content ">

    <include file="Order/left"/>

    <!--主要内容-->

    <div class="page-content" style="display: block;">

        <div class="page-heading" style="position:relative;">

            <h2>创建订单</h2>

        </div>

            <div class="panel panel-default" style="margin-top: 20px;">
                    <div class="panel-body">
                        <div id="myTabContent" class="tab-content">
                            <div class="tab-pane active in" id="home">
                                <form role="form" id="tab" action="" method="post">
                                    <div class="form-group">
                                      <label for="name">乘客手机号：</label>
                                      <input type="text" class="form-control" name="mobile" style="width:40%;">
                                    </div>

                                    <div class="form-group">
                                      <label for="name">司机姓名或者手机号：</label>
                                      <input type="text" class="form-control" id="xingming" name="xingming" style="width:40%;" placeholder="只能搜索出审核通过的司机">

                                    </div>

                                    <div class="form-group">
                                      <label for="name">司机：</label>
                                      <div id="radiolist"></div>
                                      
                                    </div>

                                    <div class="form-group">
                                      <label for="name">路线：</label>
                                        <select name="path" class="form-control" style="width:40%;">
                                            <volist name="path" id="v">
                                                <option value="{$v['id']}" >{$v['from_city']}----{$v['end_city']}</option>
                                            </volist>
                                        </select>
                                    </div>


                                    <div class="form-group">
                                      <label for="name">出发时间：</label>
                                 
                                      <input type="text" name="chufa_time" id="starttime"  placeholder="选择起始时间" class="form-control" readonly="readonly" style="width:40%;" />
                                    </div>

                                    

                                    <div class="form-group">
                                      <button  type="submit" class="btn btn-primary">创建</button>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>


    </div>

</div>

<script src="__PUBLIC__/Leader/js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="__PUBLIC__/layer/layer.js" type="text/javascript" charset="utf-8"></script>
<script src="__PUBLIC__/Leader/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__PUBLIC__/Leader/js/bootstrap-datetimepicker.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
    $('#starttime').datetimepicker({
            minView: 0, //选择日期后，不会再跳转去选择时分秒
            language: 'zh-CN',
            todayBtn: 1,
            autoclose: 1,
            todayHighlight: true,
    });

    $("#xingming").blur(function(){
        $("#radiolist").empty();
        var xingming    = $(this).val();
        $.post("{:U('Order/selectname')}",{name:xingming},function(data){
            datajson = $.parseJSON(data);
            if(datajson.code==0)
            {
                alert(datajson.msg);return false;
            }
            $.each(datajson.result,function(key,value){
                var html='<input type="radio" name="openid" value ="'+value['openid']+'">'+value['xingming']+':'+value['dianhua']+'<br>';
                $('#radiolist').append(html);
            })
        })
    });
</script>

</body>

</html>